package com.shenganyuan.smac.contact.contract;

import com.oklib.base.CoreBaseModel;
import com.oklib.base.CoreBasePresenter;
import com.oklib.base.CoreBaseView;
import com.shenganyuan.smac.contact.model.ApiMainContact;

import io.reactivex.Observable;

/**
 * Created by Damon.Han on 2018/3/30 0030.
 *
 * @author Damon
 */
public interface ContactContract {
    interface Model extends CoreBaseModel {
        Observable<ApiMainContact> getContacts();
    }

    interface View extends CoreBaseView {
        void showContent(ApiMainContact apiContact);
    }

    abstract class ABSContactPresenter extends CoreBasePresenter<Model, View> {
        public abstract void getContacts();
    }
}
